package com.vhall.component.service.pendant.common;

import java.io.Serializable;

/**
 * @author guoxin.wang
 * @date 2021/10/29 11:11
 */
public final class PendantConstant implements Serializable {

    /**
     * 挂件类型：推屏挂件
     */
    public static final Integer TYPE_PUSH = 1;

    /**
     * 挂件类型：固定挂件
     */
    public static final Integer TYPE_FIXED = 2;

    /**
     * 挂件状态：正常
     */
    public static final Integer STATUS_ON = 1;

    /**
     * 挂件状态：删除
     */
    public static final Integer STATUS_OFF = -1;

    /**
     * 是否默认状态：是
     */
    public static final Integer DEFAULT_ON = 1;

    /**
     * 是否默认状态：否
     */
    public static final Integer DEFAULT_OFF = 0;


    /**
     * 挂件操作类型：点击
     */
    public static final Integer OPERATE_TYPE_CLICK = 1;


    /**
     * redis key
     */
    public static final Integer PENDANT_KEY_EXPIRE = 86400;

    /**
     * 观众端固定挂件信息 key
     */
    public static final String PENDANT_FIXED_INFO_KEY = "fixed_pendant_key:";

    /**
     * 活跃的挂件id hash
     */
    public static final String ACTIVITY_PENDANT_KEY = "activity_pendant_key";

    /**
     * 消息类型：推屏
     */
    public static final String MESSAGE_TYPE_PENDANT_PUSH_SCREEN = "pendant_push_screen";

    /**
     * 消息类型：取消推屏
     */
    public static final String MESSAGE_TYPE_CANCEL_PENDANT_PUSH_SCREEN = "cancel_pendant_push_screen";

    /**
     * 点击
     */
    public static final String TYPE_CLICK = "click";


    /**
     * 查询stats表的锁的key
     */
    public static final String STATS_LOCK_KEY = "stats_create_lock_key";

    /**
     * 查询stats表的锁的value
     */
    public static final String STATS_LOCK_VALUE = "1";

    /**
     * 消息类型：推屏,后面跟房间roomid
     * 里面存放的是发送的消息体
     */
    public static final String ACTIVITY_PENDANT_EXPIRE_KEY = "activity_pendant_expire_key:";

}
